package main

import (
	"hfdd/core"
	"hfdd/jumpd"
)

func main() {
	core.HfDownload() // 后续使用aria2替代
	// core.DavDownload()
	// core.SmbDownload()
	// Muti()
}

func Muti() {
	sdmw := jumpd.SDMW{
		Downloader: &jumpd.HFD{},
		WriterList: []jumpd.ConfigReadWriter{
			&jumpd.Smb{
				Config:  &jumpd.SmbConfig{},
				LinkSet: &jumpd.SmbLinkSet{},
			},
		},
		CacheSize: 16,
	}
	// 启动!
	if sdmw.Init() {
		sdmw.Run()
		sdmw.Close()
	}
}
